<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
	<script>
		onload function(){
			var btn = document.getElementById("position");
			btn.onlick = function(){
				var reg = new XMLHttpRequest();//创建对象名字XMLHttpRequest
				//使用open方法设置参数
				reg.open("get","http://10.17.157.68:8080/AJAX/ajaxtest",true);//请求方法，路径
				//添加onreadystatechange事件
				reg.onreadystatechange = function(){
				//当readyState==4
					if(reg.readyState ==4){
						console.log(reg.responseText);
					}
				}
				req.send();
			}
		}
	</script>
</head>
<body>	
网页
	<button id="posBtn">点击</button>
	<marquee direction = "left">半妖倾城</marquee>
	<script>
		
	</script>
</body>
</html>
